﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace AspAuthentication.Core
{
    /// <summary>
    /// Defines the class DomainRole
    /// </summary>
    public class DomainRole
    {
        /// <summary>
        /// Gets or sets the name of the role.
        /// </summary>
        /// <value>The name of the role.</value>
        [Key, StringLength(50, MinimumLength = 1)]
        public string RoleName { get; set; }
        /// <summary>
        /// Gets or sets the domain users.
        /// </summary>
        /// <value>The domain users.</value>
        public  IList<DomainUser> DomainUsers { get; set; }
    }
}